package _3ChapterThree._7ChangeUnidirectionalAssociationToBidirectional.step3;

import java.util.HashSet;
import java.util.Set;

public class Order {
    private Set<Customer> _customers = new HashSet<>();


    public void addCustomer(Customer arg) {
        arg.friendOrders().add(this);
        _customers.add(arg);
    }

    public void removeCustomer(Customer arg) {
        arg.friendOrders().remove(this);
        _customers.remove(arg);
    }
}
